package com.biu.billiards.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.biu.billiards.model.Login.AdminLoginVo;
import com.biu.billiards.model.bo.AdminBO;
import com.biu.billiards.model.bo.AdminLoginBO;
import com.biu.billiards.model.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.biu.billiards.model.vo.admin.AddAdminVo;
import com.biu.billiards.model.vo.admin.GetAdminVo;
import com.biu.billiards.model.vo.admin.UpdateAdminVO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xue
 * @since 2023-09-25
 */
public interface IAdminService extends IService<Admin> {

    AdminLoginBO tokenLogin(HttpServletRequest request);

    AdminLoginBO adminLogin(AdminLoginVo adminLoginVo, HttpServletRequest request);

    IPage<AdminBO> getAdminList(GetAdminVo getAdminVo);

    Boolean updateAdmin(UpdateAdminVO updateAdminVO);

    Boolean addAdmin(AddAdminVo addAdminVo);

    Boolean deleteAdmin(Integer adminId);


}
